package com.weipai.education.mapper;

import com.weipai.education.model.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    List<Map<String,Object>> list(@Param("start") Integer start, 
                                  @Param("end") Integer size, 
                                  @Param("isAudit") Integer isAudit, 
                                  @Param("activityCateId") Integer activityCateId, 
                                  @Param("key") String key,
                                  @Param("userId") String userId);

    int batchDeleteById(String[] id);

    Integer listAmount(@Param("isAudit") Integer isAudit, @Param("activityCateId") Integer activityCateId, 
                       @Param("key") String key, @Param("userId") String userID);

    int getActivityByCateId(String cateId);
}